import request from '@/utils/request'

export function getKeywords(query) {
  return request({
    url: '/pagination/keyword/getList',
    method: 'post',
    data: query
  })
}

export function getKeyword(id) {
  return request({
    url: '/pagination/keyword/getDetail',
    method: 'post',
    data: id
  })
}

export function saveKeyword(id) {
  return request({
    url: '/pagination/keyword/save',
    method: 'post',
    data: id
  })
}

export function removeKeywordByID(id) {
  return request({
    url: '/pagination/keyword/remove',
    method: 'post',
    data: id
  })
}

export function deleteKeywordByID(id) {
  return request({
    url: '/pagination/keyword/delete',
    method: 'post',
    data: id
  })
}

export function changeKeywordStatusByID(id) {
  return request({
    url: '/pagination/keyword/change-status',
    method: 'post',
    data: id
  })
}

